//
// Created by tview on 2021/12/16.
//

#ifndef CPPDEMO_FORMAT_H
#define CPPDEMO_FORMAT_H

typedef block_t *(*cvt_t)(block_t *);
static cvt_t FindConversion(vlc_fourcc_t src, vlc_fourcc_t dst);

typedef struct format_t{
    vlc_fourcc_t format_in;
    vlc_fourcc_t format_out;
    cvt_t pf_audio_filter;
}format_t;

int formate_Open(format_t* format);
#endif //CPPDEMO_FORMAT_H
